package com.chuzhiyun.chengguoxy.feature.bean;

import java.util.List;

public class InternshipProjectBean {

    /**
     * id : 1
     * punchConfig : {"frequency":"on-weekdays","customDays":null,"punchIn":"10:00:00","punchOut":"18:30:00","flexMinutes":10,"requiresPic":false}
     * files : [{"id":1,"file":"https://cdn.chengguoxy.top/internship/project-file/1/echarts.png?OSSAccessKeyId=LTAI5tBLbmBLCcjsRzTDTnjV&Expires=1641464460&Signature=9x%2FZIyC5v3qZvJwDFgMW4fPMsXM%3D"}]
     * tasks : [{"id":1,"name":"周记"},{"id":2,"name":"定位"}]
     * name : 毕业实习
     * start : 2021-11-01
     * end : 2022-12-02
     * teacher : 1
     */

    private Integer id;
    private PunchConfigBean punchConfig;
    private String name;
    private String start;
    private String end;
    private Integer teacher;
    private List<FilesBean> files;
    private List<TasksBean> tasks;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public PunchConfigBean getPunchConfig() {
        return punchConfig;
    }

    public void setPunchConfig(PunchConfigBean punchConfig) {
        this.punchConfig = punchConfig;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public Integer getTeacher() {
        return teacher;
    }

    public void setTeacher(Integer teacher) {
        this.teacher = teacher;
    }

    public List<FilesBean> getFiles() {
        return files;
    }

    public void setFiles(List<FilesBean> files) {
        this.files = files;
    }

    public List<TasksBean> getTasks() {
        return tasks;
    }

    public void setTasks(List<TasksBean> tasks) {
        this.tasks = tasks;
    }

    public static class PunchConfigBean {
        /**
         * frequency : on-weekdays
         * customDays : null
         * punchIn : 10:00:00
         * punchOut : 18:30:00
         * flexMinutes : 10
         * requiresPic : false
         */

        private String frequency;
        private Object customDays;
        private String punchIn;
        private String punchOut;
        private Integer flexMinutes;
        private Boolean requiresPic;

        public String getFrequency() {
            return frequency;
        }

        public void setFrequency(String frequency) {
            this.frequency = frequency;
        }

        public Object getCustomDays() {
            return customDays;
        }

        public void setCustomDays(Object customDays) {
            this.customDays = customDays;
        }

        public String getPunchIn() {
            return punchIn;
        }

        public void setPunchIn(String punchIn) {
            this.punchIn = punchIn;
        }

        public String getPunchOut() {
            return punchOut;
        }

        public void setPunchOut(String punchOut) {
            this.punchOut = punchOut;
        }

        public Integer getFlexMinutes() {
            return flexMinutes;
        }

        public void setFlexMinutes(Integer flexMinutes) {
            this.flexMinutes = flexMinutes;
        }

        public Boolean isRequiresPic() {
            return requiresPic;
        }

        public void setRequiresPic(Boolean requiresPic) {
            this.requiresPic = requiresPic;
        }
    }

    public static class FilesBean {
        /**
         * id : 1
         * file : https://cdn.chengguoxy.top/internship/project-file/1/echarts.png?OSSAccessKeyId=LTAI5tBLbmBLCcjsRzTDTnjV&Expires=1641464460&Signature=9x%2FZIyC5v3qZvJwDFgMW4fPMsXM%3D
         */

        private Integer id;
        private String file;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getFile() {
            return file;
        }

        public void setFile(String file) {
            this.file = file;
        }
    }

    public static class TasksBean {
        /**
         * id : 1
         * name : 周记
         */

        private Integer id;
        private String name;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
